<template>
  <view>
    <!-- 用户登录 -->
    <my-login v-if="!token"></my-login>
    
    <!-- 用户信息 -->
    <my-info v-else></my-info>
  </view>
</template>

<script>
  import cartBadge from '@/mixins/cart-badge.js'
  import { mapState } from 'vuex'
  export default {
    mixins: [cartBadge],
    data() {
      return {
        
      };
    },
    computed: {
      ...mapState('m_user', ['token'])
    },
  }
</script>

<style lang="scss">

</style>
